<?php

require_once('../../config/maptrick.conf.php');
require_once(SITE_ROOT . "config/session.php");
require_once(SITE_ROOT . 'class/logic/LogicCoolness.class.php');

try {
	if ($_GET["pass"] != SCRIPT_PWD) die("Incorrect password");
	if (!isset($_GET["team"])) die("Enter TeamID");
	
	$logic = LogicCoolness::getInstance();
	$logic->delete($_GET["team"]);
	echo "Team (TeamID: " . $_GET["team"] . ") deleted";
}
catch (Exception $e) {
	echo $e->getMessage();
}

?>